import Mock from 'mockjs';
// 获取 mock.Random 对象
//const Random = Mock.Random; mock时间测试
//Random.date() + ' ' + Random.time()
let leaguesJson = require('../static/js/json/leagues.json');
let teamInfoJsonBR = require('../static/js/json/teamInfoJsonBR.json');
let teamInfoJsonASN = require('../static/js/json/teamInfoJsonASN.json');


Mock.setup({
  timeout: '200 - 400'
});
Mock.mock('/team', 'post', leaguesJson);
Mock.mock('/teamlist', 'post', leaguesJson);
Mock.mock('/teamInfo/0002', 'post', teamInfoJsonBR);
Mock.mock('/teamInfo/0001', 'post', teamInfoJsonASN);
